import {percent} from './percent';

let btn = document.querySelector('button');

btn.onclick = function(){
    if(percent(30)){
        alert('恭喜恭喜, 500w');
    }else{
        alert('再接再厉');
    }
}